<?php
// +----------------------------------------------------------------------
// | EtrolPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Author: LJQ <245369209@qq.com> 
// +----------------------------------------------------------------------

namespace app\inspection\model;
use app\common\model\Base;
use app\basic\model\Staff;

/**
 * 巡检任务
 */
class Record extends Base{

	protected $name = "inspectionrecord";
	protected $createTime = 'createTime';
	protected $updateTime = 'updateTime';

	public function user(){

		return $this->hasOne('app\common\model\User','id','operationId');
	}
	
	public function item(){
		return $this->hasOne('Item','id','inspectionItemId');
	}
	
	public function mission(){
		return $this->hasOne('Mission','id','inspectionMissionId');
	}
	
	public function problem(){
		return $this->hasOne('Problem','inspectionRecordId');
	}
}